.class public Lcom/waiqin365/lightapp/visit/a/a/ak;
.super Lcom/waiqin365/lightapp/visit/a/d;


# instance fields
.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:I

.field public e:I

.field public f:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    const/16 v0, 0x385

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/visit/a/d;-><init>(I)V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->b:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->c:Ljava/lang/String;

    iput v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->d:I

    iput v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->e:I

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 13

    const/4 v0, 0x0

    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "code"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v1, "code"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_0
    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->b:Ljava/lang/String;

    const-string/jumbo v1, "message"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string/jumbo v1, "message"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_1
    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->c:Ljava/lang/String;

    const-string/jumbo v1, "limit"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string/jumbo v1, "limit"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v1

    :goto_2
    iput v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->d:I

    const-string/jumbo v1, "page"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    const-string/jumbo v1, "page"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v1

    :goto_3
    iput v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->e:I

    const-string/jumbo v1, "data"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_10

    const-string/jumbo v1, "data"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v5

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->f:Ljava/util/ArrayList;

    move v4, v0

    :goto_4
    if-eqz v5, :cond_10

    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-ge v4, v1, :cond_10

    invoke-virtual {v5, v4}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    const-string/jumbo v1, "lines"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_f

    const-string/jumbo v1, "lines"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    move v3, v0

    :goto_5
    if-eqz v7, :cond_f

    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-ge v3, v1, :cond_f

    new-instance v8, Lcom/waiqin365/lightapp/visit/b/bf;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/visit/b/bf;-><init>()V

    const-string/jumbo v1, "visitor"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    const-string/jumbo v1, "visitor"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_6
    iput-object v1, v8, Lcom/waiqin365/lightapp/visit/b/bf;->a:Ljava/lang/String;

    const-string/jumbo v1, "visitorName"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    const-string/jumbo v1, "visitorName"

    invoke-virtual {v6, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_7
    iput-object v1, v8, Lcom/waiqin365/lightapp/visit/b/bf;->b:Ljava/lang/String;

    invoke-virtual {v7, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string/jumbo v1, "id"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    const-string/jumbo v1, "id"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_8
    iput-object v1, v8, Lcom/waiqin365/lightapp/visit/b/bf;->c:Ljava/lang/String;

    const-string/jumbo v1, "name"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_7

    const-string/jumbo v1, "name"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_9
    iput-object v1, v8, Lcom/waiqin365/lightapp/visit/b/bf;->d:Ljava/lang/String;

    const-string/jumbo v1, "remarks"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_8

    const-string/jumbo v1, "remarks"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_a
    iput-object v1, v8, Lcom/waiqin365/lightapp/visit/b/bf;->e:Ljava/lang/String;

    const-string/jumbo v1, "customers"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_e

    const-string/jumbo v1, "customers"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v9

    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    move v2, v0

    :goto_b
    if-eqz v9, :cond_d

    invoke-virtual {v9}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-ge v2, v1, :cond_d

    new-instance v11, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v11}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    invoke-virtual {v9, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string/jumbo v1, "id"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_9

    const-string/jumbo v1, "id"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_c
    iput-object v1, v11, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    const-string/jumbo v1, "name"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_a

    const-string/jumbo v1, "name"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_d
    iput-object v1, v11, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    const-string/jumbo v1, "latlon"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_b

    const-string/jumbo v1, "latlon"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_e
    iput-object v1, v11, Lcom/waiqin365/lightapp/kehu/b/am;->i:Ljava/lang/String;

    const-string/jumbo v1, "addr"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_c

    const-string/jumbo v1, "addr"

    invoke-virtual {v12, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_f
    iput-object v1, v11, Lcom/waiqin365/lightapp/kehu/b/am;->f:Ljava/lang/String;

    invoke-virtual {v10, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_b

    :cond_0
    const-string/jumbo v1, ""

    goto/16 :goto_0

    :cond_1
    const-string/jumbo v1, ""

    goto/16 :goto_1

    :cond_2
    move v1, v0

    goto/16 :goto_2

    :cond_3
    move v1, v0

    goto/16 :goto_3

    :cond_4
    const-string/jumbo v1, ""

    goto/16 :goto_6

    :cond_5
    const-string/jumbo v1, ""

    goto/16 :goto_7

    :cond_6
    const-string/jumbo v1, ""

    goto/16 :goto_8

    :cond_7
    const-string/jumbo v1, ""

    goto/16 :goto_9

    :cond_8
    const-string/jumbo v1, ""

    goto/16 :goto_a

    :cond_9
    const-string/jumbo v1, ""

    goto :goto_c

    :cond_a
    const-string/jumbo v1, ""

    goto :goto_d

    :cond_b
    const-string/jumbo v1, ""

    goto :goto_e

    :cond_c
    const-string/jumbo v1, ""

    goto :goto_f

    :cond_d
    iput-object v10, v8, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    :cond_e
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/a/a/ak;->f:Ljava/util/ArrayList;

    invoke-virtual {v1, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v1, v3, 0x1

    move v3, v1

    goto/16 :goto_5

    :cond_f
    add-int/lit8 v1, v4, 0x1

    move v4, v1

    goto/16 :goto_4

    :cond_10
    const/4 v0, 0x1

    :goto_10
    return v0

    :catch_0
    move-exception v1

    goto :goto_10
.end method
